@echo off
FOR %%A in (1 2) DO (copy training_%%A\training.tif .\training_%%A.tif)
FOR %%A in (1 2) DO (copy training_%%A\training.box .\training_%%A.box)
FOR %%A in (1 2)  DO (tesseract training_%%A.tif training_%%A nobatch box.train)
unicharset_extractor training_2.box training_1.box
mftraining -U unicharset -O peng.unicharset training_2.tr training_1.tr
cntraining training_2.tr training_1.tr
rename normproto peng.normproto
rename Microfeat peng.Microfeat
rename inttemp peng.inttemp
rename pffmtable peng.pffmtable
combine_tessdata peng.
del *.box 
del *.tr
del *.tif
xcopy peng.traineddata tessdata
del peng.*
del unicharset
del *.log
del *.txt
